Event.observe(window, 'load', function(){
	var publishButton = $('statuspublish');
	var unpublishButton = $('statusunpublish');
	var deleteButton = $('statusdelete');
	
	if (publishButton) {
		publishButton.observe('click', function(e) {
			if (!comfirm('点击确定发布文章')) {
				Event.stop(e);
			}
		});
	}
	
	if (unpublishButton) {
		unpublishButton.observe('click', function(e) {
			if (!comfirm('点击确定取消发布文章')) {
				Event.stop(e);
			}
		});
	}
	
	if (deleteButton) {
		deleteButton.observe('click', function(e){
			if (!comfirm('点击确定删除文章')) {
				Event.stop(e);
			}
		});
	}
});